package com.fancy.learncenter.activity;

import android.os.Bundle;

import com.fancy.learncenter.activity.base.BaseActivity;
import com.fancy.learncenter.common.MyApplication;
import com.fancy.learncenter.fragment.ToothTZFragment;
import com.fancy.learncenter.fragment.ToothWDFragment;
import com.superservice.lya.R;

public class MyReleaseWdActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_release_tz, getResources().getColor(R.color.toolbar_color));

        initToolbar("我发布的问答");
        ToothWDFragment fragment2 = ToothWDFragment.newInstance(MyApplication.userId);
        //动态添加到布局中，注意replace中的第一个参数为activity_main中的id
        getSupportFragmentManager().beginTransaction().replace(R.id.main_activity_layout, fragment2).commit();
    }
}
